<template>
  <div id="app">
    <router-view v-if="isRouterAlive"/>
  </div>
</template>
<script>
// Vue 刷新页面 设置
export default {
  provide() {
    return {
      reload: this.reload
    }
  },
  data() {
    return {
      isRouterAlive: true
    };
  },

  methods: {
    reload() {
      this.isRouterAlive = false
      this.$nextTick(function () {
        this.isRouterAlive = true
      })
    }
  },
};

</script>
<style>
body {
  margin: 0;
}

.header {
  background: #133b5c !important;
}

.headTitle {
  float: left;
  font-size: 30px;
  color: white;
  cursor:pointer;
}

.time {
  color: white;
}

.userAction {
  float: right;
}

.el-aside::-webkit-scrollbar {
  width: 0 !important;
}

#outer-container {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow-x: hidden;
}

.el-submenu__title:hover {
  background-color: rgba(14, 221, 240, 0.32) !important;
}

.el-menu-item:hover {
  background-color: rgba(14, 221, 240, 0.32) !important;
}

.menu_title {
  text-align: start;
}

.el-submenu .el-menu-item {
  font-size: 14px;
  padding: 0 0px 0 50px !important;
  text-align: left;
}

.el-breadcrumb {
  margin-left: 0;
  padding: 0;
  text-align: start;
  height: 20px;
  color: white;
}

.el-header,
.el-footer {
  color: #333;
  text-align: center;
  line-height: 60px;
}


.el-aside {
  margin-top: 55px;
  display: block;
  position: relative;
  overflow-y: scroll;
}

.el-main {

  /* color: #333; */
  /* text-align: center; */
  /* line-height: 160px; */
  /* padding: 10px; */
  margin-top: 60px;
  height: calc(100vh - 120px);
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
</style>
